import request from '@/utils/request'

// 查询应急演练计划列表
export function listDrillplan(query) {
  return request({
    url: '/dri/drillplan/list',
    method: 'get',
    params: query
  })
}

// 查询应急演练计划详细
export function getDrillplan(planid) {
  return request({
    url: '/dri/drillplan/' + planid,
    method: 'get'
  })
}

// 新增应急演练计划
export function addDrillplan(data) {
  return request({
    url: '/dri/drillplan',
    method: 'post',
    data: data
  })
}

// 修改应急演练计划
export function updateDrillplan(data) {
  return request({
    url: '/dri/drillplan',
    method: 'put',
    data: data
  })
}

// 删除应急演练计划
export function delDrillplan(planid) {
  return request({
    url: '/dri/drillplan/' + planid,
    method: 'delete'
  })
}
